<?php
namespace App\Services\Tool\Svg;

class Svg{
    private $header = '<?xml version="1.0" encoding="UTF-8" standalone="no"?>';
    public  $svg_height = '600';
    public  $svg_width  = '600';
    private $desc = 'Svg Desc';

    public function header_set(string $str){
        $this->header = $str;
    }

    public function desc_set(string $str){
        $this->desc = $str;
    }

    public function desc_get(){
        return '<desc>' . $this->desc .'.</desc>';
    }

    public function view_box_get(){
        return '0 0 ' . $this->svg_width . ' ' .$this->svg_height;
    }

    public function get_svg_body(){
        $str = $this->header;
        return $str;
    }
}
